package com.masterclient.app.businessmodule.homemodule.bean;

import com.eoner.commonbean.banner.BannerNewItemBean;
import com.eoner.common.bean.base.CommonBaseBean;
import com.eoner.commonbean.product.ProductMessage;
import com.masterclient.app.businessmodule.homemodule.bean.banner.BannerNewBean;
import com.masterclient.app.businessmodule.homemodule.bean.banner.SpecialImagBean;
import com.masterclient.app.businessmodule.homemodule.bean.footertab.HomeFooterTabData;
import com.masterclient.app.businessmodule.homemodule.bean.homecms.HomeCmsIndexBean;
import com.masterclient.app.businessmodule.homemodule.bean.homecms.HomeNewCmsIndexBean;
import com.masterclient.app.businessmodule.homemodule.bean.hot.HotSearchWordBean;
import com.masterclient.app.businessmodule.homemodule.bean.saletabs.FlashSaleTabBean;
import com.masterclient.app.businessmodule.homemodule.bean.search.SearchBoxBean;
import com.masterclient.app.businessmodule.homemodule.bean.sign.HomeSignBean;

import java.util.List;

public class HomeIndexBean extends CommonBaseBean {

    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {
        private SearchBoxBean search_box;
        private String notice_num;
        private String brand_list_url;
        private List<HotSearchWordBean>hot_search_words;
        private BannerNewBean banner;
        private HomeSignBean sign_guide;
        private BannerNewBean feature;
        private BannerNewBean diamonds;
        private List<BannerNewItemBean>capsules;
        private List<BannerNewBean>promotions;
        private BannerNewBean new_promotions;
        private SpecialImagBean special_image;
        private List<BannerNewItemBean>first_porcelains;
        private List<BannerNewItemBean>second_porcelains;
        private List<BannerNewItemBean>third_porcelains;
        private List<BannerNewItemBean>fourth_porcelains;
        private List<FlashSaleTabBean>flash_sale_tabs;
        //当前选中的item
        private List<ProductMessage>flash_sale_products;
        private HomeCmsIndexBean template_cms;
        private List<HomeNewCmsIndexBean> brand_recommend;
        private HomeCmsIndexBean special_cms;
        private HomeFooterTabData footer_product_tabs_obj;
        //ext
        //第一次选中的限时购索引
        private int firstSelSaleIndex = -1;
        //底部商品tab切换开关 0:关（新版）1:开启（旧版）
        private String footer_tab_switch = "";

        public String getFooter_tab_switch() {
            return footer_tab_switch;
        }

        public void setFooter_tab_switch(String footer_tab_switch) {
            this.footer_tab_switch = footer_tab_switch;
        }

        public int getFirstSelSaleIndex() {
            return firstSelSaleIndex;
        }

        public List<FlashSaleTabBean> getFlash_sale_tabs() {
            //TODO:读取第一次选中的
            if (firstSelSaleIndex == -1 && flash_sale_tabs != null && flash_sale_tabs.size() > 0) {
                for (int i = 0; i < flash_sale_tabs.size(); i++) {
                    FlashSaleTabBean temp = flash_sale_tabs.get(i);
                    if (temp.isIs_selected()) {
                        firstSelSaleIndex = i;
                        break;
                    }
                }
            }
            return flash_sale_tabs;
        }

        public HomeFooterTabData getFooter_product_tabs_obj() {
            return footer_product_tabs_obj;
        }

        public void setFooter_product_tabs_obj(HomeFooterTabData footer_product_tabs_obj) {
            this.footer_product_tabs_obj = footer_product_tabs_obj;
        }

        public HomeCmsIndexBean getTemplate_cms() {
            return template_cms;
        }

        public void setTemplate_cms(HomeCmsIndexBean template_cms) {
            this.template_cms = template_cms;
        }

        public List<HomeNewCmsIndexBean> getBrand_recommend() {
            return brand_recommend;
        }

        public void setBrand_recommend(List<HomeNewCmsIndexBean> brand_recommend) {
            this.brand_recommend = brand_recommend;
        }

        public HomeCmsIndexBean getSpecial_cms() {
            return special_cms;
        }

        public void setSpecial_cms(HomeCmsIndexBean special_cms) {
            this.special_cms = special_cms;
        }

        public void setFlash_sale_tabs(List<FlashSaleTabBean> flash_sale_tabs) {
            this.flash_sale_tabs = flash_sale_tabs;
        }

        public List<ProductMessage> getFlash_sale_products() {
            return flash_sale_products;
        }

        public void setFlash_sale_products(List<ProductMessage> flash_sale_products) {
            this.flash_sale_products = flash_sale_products;
        }

        public void setFirstSelSaleIndex(int firstSelSaleIndex) {
            this.firstSelSaleIndex = firstSelSaleIndex;
        }

        public List<BannerNewItemBean> getFourth_porcelains() {
            return fourth_porcelains;
        }

        public void setFourth_porcelains(List<BannerNewItemBean> fourth_porcelains) {
            this.fourth_porcelains = fourth_porcelains;
        }

        public List<BannerNewItemBean> getThird_porcelains() {
            return third_porcelains;
        }

        public void setThird_porcelains(List<BannerNewItemBean> third_porcelains) {
            this.third_porcelains = third_porcelains;
        }

        public List<BannerNewItemBean> getSecond_porcelains() {
            return second_porcelains;
        }

        public void setSecond_porcelains(List<BannerNewItemBean> second_porcelains) {
            this.second_porcelains = second_porcelains;
        }

        public List<BannerNewItemBean> getFirst_porcelains() {
            return first_porcelains;
        }

        public void setFirst_porcelains(List<BannerNewItemBean> first_porcelains) {
            this.first_porcelains = first_porcelains;
        }

        public List<BannerNewBean> getPromotions() {
            return promotions;
        }

        public void setPromotions(List<BannerNewBean> promotions) {
            this.promotions = promotions;
        }

        public BannerNewBean getNewPromotions() {
            return new_promotions;
        }

        public void setNewPromotions(BannerNewBean promotions) {
            this.new_promotions = new_promotions;
        }

        public SpecialImagBean getSpecialImag() {
            return special_image;
        }

        public void setSpecialImag(SpecialImagBean special_image) {
            this.special_image = special_image;
        }

        public List<BannerNewItemBean> getCapsules() {
            return capsules;
        }

        public void setCapsules(List<BannerNewItemBean> capsules) {
            this.capsules = capsules;
        }

        public BannerNewBean getDiamonds() {
            return diamonds;
        }

        public void setDiamonds(BannerNewBean diamonds) {
            this.diamonds = diamonds;
        }

        public BannerNewBean getFeature() {
            return feature;
        }

        public void setFeature(BannerNewBean feature) {
            this.feature = feature;
        }

        public HomeSignBean getSign_guide() {
            return sign_guide;
        }

        public void setSign_guide(HomeSignBean sign_guide) {
            this.sign_guide = sign_guide;
        }

        public BannerNewBean getBanner() {
            return banner;
        }

        public void setBanner(BannerNewBean banner) {
            this.banner = banner;
        }

        public List<HotSearchWordBean> getHot_search_words() {
            return hot_search_words;
        }

        public void setHot_search_words(List<HotSearchWordBean> hot_search_words) {
            this.hot_search_words = hot_search_words;
        }

        public String getNotice_num() {
            return notice_num;
        }

        public void setNotice_num(String notice_num) {
            this.notice_num = notice_num;
        }

        public String getBrand_list_url() {
            return brand_list_url;
        }

        public void setBrand_list_url(String brand_list_url) {
            this.brand_list_url = brand_list_url;
        }

        public SearchBoxBean getSearch_box() {
            return search_box;
        }

        public void setSearch_box(SearchBoxBean search_box) {
            this.search_box = search_box;
        }
    }


}
